package com.yao.entity;

/**
 * 苹果基类
 * 
 * @Description: TODO(用一句话描述该文件做什么)
 * @author yaoym
 * @date 2018年1月25日 下午2:45:29
 * @version V1.0
 */
public class Apple {

	/**
	 * 颜色
	 */
	private String color;

	/**
	 * 重量
	 */
	private Integer weight;

	public Apple(Integer weight) {
		super();
		this.weight = weight;
	}

	public Apple(String color, int weight) {
		super();
		this.color = color;
		this.weight = weight;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public Integer getWeight() {
		return weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	@Override
	public String toString() {
		return "Apple [color=" + color + ", weight=" + weight + "]";
	}

}
